package com.wish.group05.system.config;

import org.apache.kafka.clients.admin.NewTopic;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class KafkaConfig {
    /**
     * 创建一个新的主题 设置3个分区 2个副本
     * @return
     */
    @Bean
    public NewTopic goodTopic() {
        return new NewTopic("test",3,(short)3);
    }
}
